package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Brand;
import cn.imvc.app.entities.BrandGoodsClass;
import cn.imvc.app.entities.GoodsClass;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface BrandGoodsClassRepository extends JpaRepository<BrandGoodsClass, Integer>,IJpqlExecutor<BrandGoodsClass>{

	List<BrandGoodsClass> getByGoodsClassAndBrandName(GoodsClass goodsClass, String brandName);

	List<BrandGoodsClass> findByGoodsClassAndBrand(GoodsClass goodsClass,Brand brand);
	
	void deleteByGoodsClassAndBrand(GoodsClass goodsClass,Brand brand);

}
